package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

/**
 * 插入学生分数的VO
 */

@Data
public class SubjectStudentScoreVo {

    private Integer studentId;
    private Integer subjectId;

    private Integer score;


    @Override
    public String toString() {
        return "SubjectStudentScoreVo{" +
                "studentId=" + studentId +
                ", subjectId=" + subjectId +
                ", score=" + score +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SubjectStudentScoreVo that = (SubjectStudentScoreVo) o;
        return Objects.equals(studentId, that.studentId) && Objects.equals(subjectId, that.subjectId) && Objects.equals(score, that.score);
    }

    @Override
    public int hashCode() {
        return Objects.hash(studentId, subjectId, score);
    }
}
